GRASS Changes: 2nd Edition

Important changes in GRASS 5.3.x since 2nd Edition book submission

Open Source GIS: A GRASS GIS Approach
Markus Neteler, Helena Mitasova
2. Edition 2004, 424 pages
ISBN: 1-4020-8064-6
Kluwer Academic Publishers, Boston, Dordrecht, London
Book Series: The Kluwer international series in Engineering and Computer Science: Volume 773

The book “Open Source GIS:A GRASS GIS Approach” (ISBN: 1-4020-8064-6) is based on GRASS 5.3 from December 2003. To help the readers of the book with ongoing improvements and changes in GRASS we will maintain this web page for a while.

In general please refer to the NEWS file for a list of changes between GRASS 5.3/2003 and the current version.


List of changes to use the 2nd edition book with GRASS 6

Open Source GIS: A GRASS GIS Approach
Markus Neteler, Helena Mitasova
2. Edition 2004, 424 pages
ISBN: 1-4020-8064-6
Kluwer Academic Publishers/Springer, Boston, Dordrecht, London
Book Series: The Kluwer international series in Engineering and Computer Science: Volume 773
Online supplement

The basic changes are the integration of sites into the vector engine.

Quick reference: Chapters 1 – 2 – 345678910111213

 

Book Page(s)ModuleUpdate for GRASS 6
Chapter 1, 2
No relevant changes.
Chapter 3
p. 27v.in.shapeUse v.in.ogr instead
p. 27BrowserThe browser is auto-detected now.
p. 27Tab. 32Additionally there are:
r3.* modules: raster volume processing
No longer supported are:
p.* modules (use ps.* instead or the QGIS print manager)
m.* modules (m.proj: cs2cs; m.in.e00: v.in.e00)
p. 29tcltkgrassUse d.m instead
p. 29g.list sitesg.list vect
p. 30s.info/d.sitess.info -> v.info
d.sites -> d.vect
This command becomes d.vect archsites col=white icon=basic/box
p. 33g.mapsetsg.mapsets now comes with a new, convenient graphical user interface
p. 33/42g.projinfog.proj -w
p. 46EPSG/Startup screenNote: The GRASS startup screen provides support to auto-generate locations from EPSG code
p. 48s.projv.proj (-s is no longer needed)
p. 48d.sitesd.sites -> d.vect
Chapter 4
p. 56g.region -p3Adding ‘3’ also reports the 3rd dimension (former g3.region)
p. 57g.region -p3Adding ‘3’ also reports the 3rd dimension (former g3.region)
p. 57g3.setregion/g3.createwindRetired, use g.* modules (g.region), 3D region definition is now fully integrated
p. 58r.supportIt is not needed to run r.support
p. 58g.projinfog.proj -w
p. 66i.rectifyOperates like any other raster module now, no email is sent any more
p. 68Vector model
  • In GRASS 6 following primitives are supported: point, line, centroid, area, face (3D area), kernel (3D centroid)
  • topology is always generated, the user no longer needs to run v.support (now: v.build)
p. 70/71v.supportv.build (note: no more need to run after vector operation)
p. 71v.in.shapeUse v.in.ogr instead
p. 71m.in.e00v.in.e00 (the manual attribute modifications are no longer needed as all attributes are imported)
p. 72Ungenerate format(currently) no longer supported
p. 73v.in.asciiReads now from any directory as well as “standard in” (stdin)
p. 73v.out.asciiSaves now to any directory as well as “standard out” (stdout)
p. 73SDTSUse v.in.ogr to import SDTS
p. 74v.in.dxfv.in.dwg (see license note). It also supports 3D data.
p. 74v.transformThe v.in.ascii step is no longer needed. The v.support call is no longer needed.
p. 77v.in.gshhsNot yet ported to GRASS 6 (status 5/2005, volunteers?)
p. 78v.out.shapeUse v.out.ogr instead
p. 79v.out.e00E00 export is (currently) not supported (but could be derived from v.in.e00 script – status 5/2005, volunteers?)
p. 79v.out.arcUngenerate export is (currently) not supported
p. 79v.in.asciiReads now from any directory as well as “standard in” (stdin)
p. 79v.out.sdtsSDTS export is (currently) not supported
p. 80SitesSites are managed as vector points in GRASS 6
p. 81s.in.mifUse v.in.ogr
p. 81s.in.shapeUse v.in.ogr
p. 81s.in.dbfUse v.in.db
p. 81-83s.in.ascii, s.out.asciiUse v.in.ascii, v.out.ascii
p. 83s.to.rastv.to.rast
p. 86slide.show.shd.slide.show
Chapter 5
p. 86r.colorsAdditional color tables are available with rules= parameter
p. 97r.maskPlease use r.mapcalc or r.reclass to create a binary ‘MASK’ map. Or use g.copy to rename an existing binary map to ‘MASK’.
p. 98s.surf.rstv.surf.rst
p. 105-106r.liner.to.vect
p. 105-106r.polyr.to.vect
p. 108r.to.sitesThe procedure needs to be slightly modified: Either use r.thin (thinning the line to single pixel width) to avoid parallel points being generated. Or, preferably, set the raster resolution to the map resolution before generating the points such as:
g.region rast=transport.misc -p

r.to.vect transport.misc out=transport_misc feature=point
p. 109s.surf.rstmerged into v.surf.rst
p. 118r.polyr.to.vect
p. 118v.supportv.build (but no more need to run it here)
p. 120-121d.sitesd.vect
p. 125r.hydro.CASC2DNot yet ported to GRASS 6 (status 5/2005, volunteers?)
p. 125d.rast.labelsNot yet ported to GRASS 6 (status 5/2005, volunteers?)
Chapter 6
p. 131digitizer board(Currently) not supported
p. 132r.liner.to.vect
p. 132r.polyr.to.vect
p. 133scaleThe scale is no longer actively used for calculation of snapping thresholds in vector maps. Thresholds are now usually given in map/projection units (and in v.digit optionally also in sceen pixels).
p. 133-138v.digitThis module was completely rewritten (with new user interface). Please refer to the manual page of the module.
p. 138category labelsLabels are now managed in the associated DB table (use db.execute)
p. 138v.spagv.clean with break,snap tools (see manual page)
p. 139v.prunev.clean with prune tool (see manual page)
p. 140category labelsLabels are now managed in the associated DB table (use db.execute)
p. 141v.llabel/v.alabelv.category
p. 141d.vect.aread.vect (-c to colorize polygons)
p. 141d.vect.labelsd.vect (attr parameter)
p. 142slide.show.shd.slide.show
p. 142v.whatuse v.distance & d.what.vect
p. 142v.areause v.to.db
p. 142-143v.patchadditionally there are v.overlay and v.select
p. 142v.spagv.clean
p. 143v.cutregion.shv.in.region + v.overlay
p. 143-144v.cutterv.overlay
p. 143-144d.vect.labelsd.vect (attr parameter)
p. 144d.vect.aread.vect (-c to colorize polygons)
p. 144r.liner.to.vect
p. 144r.polyr.to.vect
p. 144s.hullv.hull
p. 144r.to.sitesr.to.vect
p. 144-145v.to.sitesno longer needed
p. 145v.area2linev.type
p. 145v.llabelv.category
p. 146Figures.* integrated into v.*
p. 146s.voronoiv.voronoi
p. 149-150s.surf.idwv.surf.idw
p. 150v.to.sitesno longer needed
Chapter 7
p. 151Site dataSite data format was retired, point data are managed as vector point data
p. 151site_lists directoryThis directory is not used for storing point data in GRASS6
p. 152v.to.sitesDigitized points remain in vector format, this command was retired
p. 152r.to.sitesUse r.to.vect
p. 152r3.to.sitesNot supported yet, but volume visualization is now supported directly by nviz
p. 153r.randomOption sites_out changed to vector_output
p. 153s.sampleUse v.sample
p. 153v.to.sitesRetired, no longer needed
p. 153s.perturbUse v.perturb
p. 153s.in.asciiUse v.in.ascii
p. 154s.infoUse v.info
p. 154d.sitesUse d.vect
p. 154d.what.sitesUse d.what.vect
p. 156s.univarUse v.univar
p. 156s.normal, s.qcountUse v.normal, v.qcount
p. 156s.sv, m.svfitUse R or gstat, no longer supported
p. 157s.to.rastUse v.to.rast
p. 157s.to.rast3Not supported yet
p. 158s.voronoiUse v.voronoi, use output of v.random to create the input file
p. 158, 168-169s.to.rastUse v.to.rast
p. 159-175s.voronoi, s.surf.idw, s.surf.rst, s.vol.rst, s.volt.rstUse v.voronoi, v.surf.idw, v.surf.rst, v.vol.rst, v.volt.rst not yet available
p. 166s.surf.rst.cvUse v.surf.rst
p. 167-171data setsNeed to be updated to GRASS6
p. 172-173g3.setregion/g3.createwind/g3.listRetired, use g.* modules (g.region, g.list rast3d), 3D region definition is now fully integrated
p. 174s.to.rast3Not supported yet
p. 174,175s.vol.idwNot supported yet
Chapter 8
p. 177d.sitesUse d.vect
p. 177d.rast.labelsNot supported, convert to vector and use d.vect
p. 177d.vect.labels, d.site.labelsUse d.vect, note that polygon labels are associated with centroids
p. 182d.areaUse d.vect
p. 185nviz …. sites=archsitessites option replaced by vector, but the loading does not work from command line, so load from the GUI as Vector points
p. 185Figure 8.3 nviz Vector Panel and Sites PanelChanged to Vector Lines and Vector Points Panel
p. 188Panel – Sitesreplaced by Panel – Vector Points
p. 193rgb2gifanimUse convert command
p. 195Visualizing volumesIsosurfaces and crossections added, use Panel – Volume
p. 197ps.mapthe definitions for vector maps are modified. There are also new features, please refer to the manual of ps.map for an example.
Chapter 9
p. 195Visualizing volumesIsosurfaces and crossections added, use Panel – Volume
p. 207i.in.erdasUse r.in.gdal
p. 209i.out.erdasUse r.out.gdal
p. 214dcorrelate.shd.correlate
p. 220i.rectifydoes no longer send an email, but behaves like any other raster module
p. 227r.to.sitesUse r.to.vect
p. 220s.surf.rstUse v.surf.rst
p. 220d.vect.labelsUse d.vect
p. 241Brovey Fusionnow implemented as i.fusion.brovey
Chapter 10
p. 270r.polyr.to.vect
p. 270v.supportno longer needed
Chapter 11
p. 274Script programmingIt is recommended to use g.parser in scripts for easy user interface programming. Please see scripts shipped with GRASS 6 for examples.
p. 280Automated usageA user can now run multiple GRASS 6 sessions in parallel (in different mapsets).
p. 281.grassrc5Renamed to .grassrc6
p. 283C programmingThe source code directory structure was simplified.
p. 284V2_, dig_Retired/internal use only. The programmer will use Vect_*() functions only.
p. 284G_sitesRetired – migrated to Vect_*() functions.
p. 285VariablesAll settings are defined in include/Make/* now.
Chapter 12
p. 293s.surf.rstUse v.surf.rst
p. 302wake_spft data setNeeds update for GRASS6
p. 306-307soils and land cover conversion to rasterMultiple attributes are directly supported
p. 308s.info, s.surf.rstUse v.info, v.surf.rst
Chapter 13
p. 328gstatFrom gstat version 2.4.4 onwards the new GRASS 6 is supported
R-stats– TODO – (the GRASS 6 interface is currently under development, see GRASS Newsletter Vol.3)
Installation of new interface: see here